<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta charset="UTF-8">
    <title>账号被冻结</title>
    <style>
        .container {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .btn {
            width: 80%;
            height: 50px;
            font-size: 18px;
            background-color: #FD482C;
            border: none;
            border-radius: 3px;
            color: #fff;
            user-select: none;
        }
        .avatar {
            margin-top: 15vh;
            margin-bottom: 15px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
        }
    </style>
</head>
<body>
<div class="container">
    <img id="avatar" class="avatar" src="" alt="">
    <button class="btn" onclick="closeWindow()">账号被冻结</button>
</div>

<script>

    function closeWindow() {
        document.addEventListener('WeixinJSBridgeReady', function(){
            WeixinJSBridge.call('closeWindow');
        }, false);
        WeixinJSBridge.call('closeWindow');
    }

    function getQueryVariable(variable) {
        var query = window.location.search.substring(1)
        var vars = query.split("&")
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=")
            if(pair[0] === variable){
                return pair[1]
            }
        }
        return false
    }

    let avatar = getQueryVariable('avatar')
    avatar = "https://thirdwx.qlogo.cn/mmopen/vi_32/Q2eacfhuyKZ5gC760wCEZV9Do9X8d4r062dhV9WpIfpygcfmJibvwtsqZO3qEEOutYxrlQ6ZVG5HAIgvG3ZEqlg/132"
    document.getElementById('avatar').src = decodeURIComponent(avatar)
</script>
</body>
</html>